package cn.stylefeng.guns.sys.modular.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author jiangge
 * @since 2021-06-02
 */
@Data
@TableName("btya_dsstore_bill_rice")
public class DsstoreBillRice implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 单据系统单号
     */
    @TableField("bill_no")
    private String billNo;

    /**
     * 对方机构名称
     */
    @TableField("other_side_name")
    private String otherSideName;

    @TableField("shop_name")
    private String shopName;

    @TableField("item_big_class_name")
    private String itemBigClassName;

    /**
     * 品项辅助编号
     */
    @TableField("item_assist_no")
    private String itemAssistNo;

    /**
     * 品项规格
     */
    @TableField("item_spec")
    private String itemSpec;

    @TableField("sell_taxes")
    private BigDecimal sellTaxes;

    @TableField("item_small_class_code")
    private String itemSmallClassCode;

    @TableField("arrive_money")
    private BigDecimal arriveMoney;

    @TableField("store_code")
    private String storeCode;

    @TableField("output_rate")
    private BigDecimal outputRate;

    @TableField("store_bill_remark")
    private String storeBillRemark;

    @TableField("out_main_amount")
    private BigDecimal outMainAmount;

    @TableField("item_sign")
    private String itemSign;

    @TableField("shop_code")
    private String shopCode;

    @TableField("tax_money")
    private BigDecimal taxMoney;

    @TableId(value = "store_bill_dtid", type = IdType.ID_WORKER)
    private String storeBillDtid;

    /**
     * 修改时间
     */
    @TableField("modify_date")
    private Date modifyDate;

    @TableField("store_name")
    private String storeName;

    @TableField("store_billid_remark")
    private String storeBillidRemark;

    /**
     * 主单位
     */
    @TableField("main_unit")
    private String mainUnit;

    @TableField("gift_flag")
    private Integer giftFlag;

    /**
     * 出库金额
     */
    @TableField("out_store_money")
    private BigDecimal outStoreMoney;

    /**
     * 品项ID
     */
    @TableField("item_id")
    private String itemId;

    @TableField("item_small_class_name")
    private String itemSmallClassName;

    @TableField("store_bill_re_state")
    private Integer storeBillReState;

    @TableField("bus_user")
    private String busUser;

    @TableField("taxes")
    private BigDecimal taxes;

    @TableField("batch_code")
    private String batchCode;

    /**
     * 入库金额
     */
    @TableField("in_store_money")
    private BigDecimal inStoreMoney;

    @TableField("is_out")
    private Integer isOut;

    /**
     * 门店ID
     */
    @TableField("shop_id")
    private String shopId;

    /**
     * 生产日期
     */
    @TableField("make_time")
    private Date makeTime;

    /**
     * 业务类型
     */
    @TableField("bill_bus_type")
    private String billBusType;

    @TableField("process_money")
    private BigDecimal processMoney;

    /**
     * 品项编号
     */
    @TableField("item_code")
    private String itemCode;

    @TableField("push_out_store_money")
    private BigDecimal pushOutStoreMoney;

    /**
     * 主单位入库数量
     */
    @TableField("in_main_amount")
    private BigDecimal inMainAmount;

    @TableField("push_out_store_amount")
    private BigDecimal pushOutStoreAmount;

    @TableField("store_bill_id")
    private String storeBillId;

    @TableField("sell_include_tax_money")
    private BigDecimal sellIncludeTaxMoney;

    @TableField("out_bus_amount")
    private BigDecimal outBusAmount;

    @TableField("other_side_type")
    private String otherSideType;

    @TableField("push_in_store_money")
    private BigDecimal pushInStoreMoney;

    @TableField("yield")
    private BigDecimal yield;

    @TableField("arrive_amount")
    private BigDecimal arriveAmount;

    /**
     * 品项名称
     */
    @TableField("item_name")
    private String itemName;

    /**
     * 系统批次号
     */
    @TableField("sys_batch_code")
    private String sysBatchCode;

    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;

    @TableField("audit_date")
    private Date auditDate;

    @TableField("other_side_id")
    private String otherSideId;

    @TableField("bill_type")
    private String billType;

    @TableField("sell_tax_money")
    private BigDecimal sellTaxMoney;

    @TableField("bill_bus_type_id")
    private String billBusTypeId;

    @TableField("push_in_store_amount")
    private BigDecimal pushInStoreAmount;

    /**
     * 业务单位入库数量
     */
    @TableField("in_bus_amount")
    private BigDecimal inBusAmount;

    @TableField("bus_date")
    private Date busDate;

    /**
     * 会计年
     */
    @TableField("a_p_year")
    private Long aPYear;

    @TableField("item_big_class_code")
    private String itemBigClassCode;

    @TableField("sale_money")
    private BigDecimal saleMoney;

    @TableField("store_id")
    private String storeId;

    @TableField("item_abc")
    private String itemAbc;

    @TableField("arrival_date")
    private Date arrivalDate;

    /**
     * 会计月
     */
    @TableField("a_p_month")
    private Integer aPMonth;

    @TableField("other_side_code")
    private String otherSideCode;

    /**
     * 业务单位
     */
    @TableField("bus_unit")
    private String busUnit;

    @TableField("include_tax_money")
    private BigDecimal includeTaxMoney;

    @TableField("parent_bill_no")
    private String parentBillNo;


    @TableField(exist = false)
    private BigDecimal itemBalanceAmout;

    @TableField(exist = false)
    private BigDecimal itemBalanceBusAmout;

    @TableField(exist = false)
    private String itemBusUnit;

    @TableField(exist = false)
    private BigDecimal warnPrice;
}
